<?php
/*
 * Created on 2012-3-13
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
  include("../nncms_manager_inc.php");
 $nns_id=$_GET["category_list"];
 $nns_group_id=$_GET["group_id"];
 $nns_group_type=$_GET["group_type"];
  $category_type=$_GET["category_type"]; 
 if ($nns_id){
	
	 include($nncms_db_path. "nns_category/nns_db_category_detail_class.php");
	 $ajax_category_inst=new nns_db_category_detail_class();
	 $ajax_category_data=$ajax_category_inst->nns_db_category_detail_list("",$nns_id,"","");
	 echo json_encode($ajax_category_data);
 }
 if ($nns_group_id && $nns_group_type){
 	 include($nncms_db_path. "nns_category/nns_db_category_list_class.php");
 	  $ajax_category_inst=new nns_db_category_list_class();
	 $ajax_category_data=$ajax_category_inst->nns_db_category_list_list("",$nns_group_type,$nns_group_id,null,0,0,$category_type);
	 echo json_encode($ajax_category_data);
 }
?>
